set(sources 
main.c
common.h
actions.c
actions.h
collector.c
collector.h
history.c
history.h
menu.c
menu.h
settings-dialog_glade.h
xfce-panel-plugin.h
xfce-panel-plugin.c
xfconf-channel.h
xfconf-channel.c
xfce-fake.h
xfce-fake.c
)

INCLUDE(FindPkgConfig)
FIND_PACKAGE(PkgConfig REQUIRED) 
 
pkg_check_modules(LIBQLADE REQUIRED libglade-2.0 )
pkg_check_modules(GDKX REQUIRED gdk-x11-2.0)
pkg_check_modules(GTK REQUIRED gtk+-2.0)

include_directories(
${GTK_INCLUDE_DIRS} 
${LIBQLADE_INCLUDE_DIRS}
${GDKX_INCLUDE_DIRS}
)

link_directories(
${GTK_INCLUDE_DIRS}
${LIBQLADE_INCLUDE_DIRS}
${GDKX_INCLUDE_DIRS}
) 

add_executable(${PROJECT_NAME} ${sources})

target_link_libraries(
${PROJECT_NAME} 
${GTK_LIBRARIES}
${LIBQLADE_LIBRARIES}
${GDKX_LIBRARIES}
)

install (TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ./)
install (FILES clipman-actions.xml DESTINATION share)

